/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-13 17:30:23
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';
//  查询跟进方式定义信息
// export const queryTrackingTask = params => axios.get(`${SERVER.DMSCLOUD_POTENCUS}/customerManage/trackingtask`, { params });
export const queryFollowWays = params => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory/queryVisitingModeInfo7`, { params });
//  跟进方式定义跳转编辑页面
export const queryFollowWaysByid = id => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory/mode/${id}`, { id: Number(id) });
//  跟进方式定义新增保存
export const addFollowWays = params => axios.post(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory/mode`, params);
//  跟进方式定义编辑保存
export const editFollowWays = (params,id) => axios.put(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory/mode/${id}`, params);
